home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir41
/
zip4.zip
/
CFGZIP4R.444
< prev
next >
Wrap
Text File
|
1993-11-27
|
3KB
|
112 lines
:: Mick Ghazey 70550,1762 - November 1993
:: Returns 0 if NORMAL configuration, 1 if RENAMED.
@*echo off
*setlocal
*set pkz=pkzip.exe
*set pkunz=pkunzip.exe
*set pkz4=pkzip4.exe
*set pkunz4=pkunzip4.exe
*set z4=zip4.exe
*set unz4=unzip4.exe
:: Find directory where ZIP4 is installed.
*set dir4=%@path[%@search[%z4]]
iff .%dir4 == . then
*echo Can't find %z4!
goto notdone
endiff
iff not exist %@path[%dir4]%unz4 then
*echo Can't find %@path[%dir4]%unz4!
goto notdone
endiff
:: Try to find PKZIP4.EXE.
*set pkdir=%@path[%@search[%pkz4]]
iff .%pkdir == . then
:: PKZIP4.EXE doesn't exist. Find PKZIP.EXE directory.
*set pkdir=%@path[%@search[%pkz]]
iff .%pkdir == . then
*echo Can't find %pkz!
goto notdone
endiff
iff not exist %@path[%pkdir]%pkunz then
*echo Can't find %@path[%pkdir]%pkunz!
goto notdone
endiff
:: Temporarily move the file.
*move /q %@path[%pkdir]%pkz %@path[%pkdir]%pkz4
iff .%@search[%pkz] ne . then
:: A second copy of a pkzip.exe executable was found
*echo "%@path[%pkdir]%pkz" and "%@search[%pkz]" exist in your path.
*move /q %@path[%pkdir]%pkz4 %@path[%pkdir]%pkz
goto notdone
endiff
:: Wait for confirmation before making the change.
*move /q %@path[%pkdir]%pkz4 %@path[%pkdir]%pkz
:: Temporarily move the file.
*move /q %@path[%pkdir]%pkunz %@path[%pkdir]%pkunz4
iff .%@search[%pkunz] ne . then
:: A second copy of a pkunzip.exe executable was found
*echo "%@path[%pkdir]%pkunz" and "%@search[%pkunz]" exist in your path.
*move /q %@path[%pkdir]%pkunz4 %@path[%pkdir]%pkunz
goto notdone
endiff
:: Wait for confirmation before making the change.
*move /q %@path[%pkdir]%pkunz4 %@path[%pkdir]%pkunz
*cls
text
The following changes will be made in the order shown to the following files.
The changes may be undone by running CFIGZIP4.BTM again. Please read
ZIP4.DOC before accepting these changes.
endtext
*echo %@path[%pkdir]%pkz will be renamed %@path[%pkdir]%pkz4
*echo %@path[%dir4]%z4 will be copied to %@path[%pkdir]%pkz
*echo.
*echo %@path[%pkdir]%pkunz will be renamed %@path[%pkdir]%pkunz4
*echo %@path[%dir4]%unz4 will be copied to %@path[%pkdir]%pkunz
*echo.
*echo Make the changes? (y/N)
*set ans=N
INKEY /w15 %%ans
iff "%ans"=="Y" then
*move /q %@path[%pkdir]%pkz %@path[%pkdir]%pkz4
*copy /q %@path[%dir4]%z4 %@path[%pkdir]%pkz
*move /q %@path[%pkdir]%pkunz %@path[%pkdir]%pkunz4
*copy /q %@path[%dir4]%unz4 %@path[%pkdir]%pkunz
*echo.
*echo ZIP4/UNZIP4 is now in the RENAMED configuration.
quit 1
else
goto notdone
endiff
:: Go back to normal configuration.
else
*move /q %@path[%@path[%pkdir]]pkzip4.exe %@path[%@path[%pkdir]]pkzip.exe
*move /q %@path[%@path[%pkdir]]pkunzip4.exe %@path[%@path[%pkdir]]pkunzip.exe
*echo ZIP4/UNZIP4 is now in the NORMAL configuration.
quit 0
endiff
quit
:notdone
echo ZIP4/UNZIP4 configuration remains NORMAL.
quit 0